#include "GroupStates.h"
#include "Message Dispatcher.h"
#include "ExecutionLog.h"
void Idle::Enter(Group* group)
{}

void Idle::Execute(Group* group)
{}

void Idle::Exit(Group* group)
{}

void Moving::Enter(Group* group)
{

}

void Moving::Execute(Group* group)
{
	if(!group->Leader()->Pos().DistanceSq(group->MoveGoal()) < 6400)
		group->m_pGroupState->ChangeState(Idle::Instance());
}

void Moving::Exit(Group* group)
{ 

}